import Mock from 'mockjs'

const roomdata = {
    "data": {
        "rooms": {
            "total": 3,
            "list": [
                {
                    "name": "测试会议室A",
                    "addr": "D7 3-2",
                    "devices": [
                        {
                            "name": "设备6-3"
                        },
                        {
                            "name": "投影仪"
                        },
                        {
                            "name": "摄像头"
                        }
                    ]
                },
                {
                    "name": "现代化会议室A",
                    "addr": "D7 3-3",
                    "devices": [
                        {
                            "name": "设备6-6"
                        },
                        {
                            "name": "设备6-3"
                        },
                        {
                            "name": "27寸屏幕"
                        },
                        {
                            "name": "设备3-2"
                        }
                    ]
                },
                {
                    "name": "多媒体会议室A",
                    "addr": "D7 3-1",
                    "devices": [
                        {
                            "name": "27寸屏幕"
                        },
                        {
                            "name": "设备3-2"
                        }
                    ]
                }
            ]
        }
    }
}
const meetingdata = {
    "data": {
        "meetings": {
            "total": 8,
            "list": [
                {
                    "ID": "5e93cf132f6da53acf9bb1bb",
                    "name": "13周例会",
                    "desc": "各部门负责人汇报该部门本周工作完成情况，总结工作中存在的问题与不足，其他成员参与讨论",
                    "startTime": 1586745245000,
                    "endTime": 1586981529000
                },
                {
                    "ID": "5e93df242f6da53acf9bb1bd",
                    "name": "No.3",
                    "desc": "晨会",
                    "startTime": 1586700045000,
                    "endTime": 1586706567000
                },
                {
                    "ID": "5e93ee9e2f6da53acf9bb1c2",
                    "name": "No.322",
                    "desc": "晨会",
                    "startTime": 1586700045270,
                    "endTime": 1587700045270
                },
                {
                    "ID": "5e93f3352f6da53f1352d39c",
                    "name": "第2次代表大会",
                    "desc": "代表大会",
                    "startTime": 1586700045270,
                    "endTime": 1587700045270
                },
                {
                    "ID": "5e971cfe2f6da53ff701a952",
                    "name": "第一次代表大会",
                    "desc": "代表大会",
                    "startTime": 1588961728259,
                    "endTime": 1589961728259
                }
            ]
        }
    }
}
const groups = { "data": { "groups": { "list": [{ "id": "3b025d0a-66be-4883-af03-e61791603415", "name": "g2-65576", "icon": "https://github.githubassets.com/images/icons/emoji/unicode/1f3af.png", "detail": "testing 4353454", "master": { "nick": "awa", "__typename": "User" }, "__typename": "Group" }, { "id": "79a159f6-35c4-4a22-997b-602b96a55343", "name": "ttt", "icon": "https://github.githubassets.com/images/icons/emoji/unicode/1f3af.png", "detail": "testing ttt", "master": { "nick": "awa", "__typename": "User" }, "__typename": "Group" }, { "id": "fda907ef-b518-489a-9596-94d5bdb8c1e8", "name": "g3-666777", "icon": "https://ucc.alicdn.com/pic/developer-ecology/af0720aed0e5432d8c4c75cbefee43e8.png", "detail": "testing 222222 fghfghfg", "master": { "nick": "awa", "__typename": "User" }, "__typename": "Group" }], "total": 3, "__typename": "GroupList" } } }

Mock.mock('/api/api/user/room', 'get', roomdata)
Mock.mock('/api/api/user/meeting', 'get', meetingdata)
Mock.mock('/api/api/user/groups', 'get', groups)

